<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "" "">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:w="http://www.apusic.com/jsf/widget"
	xmlns:layout="http://www.apusic.com/jsf/layout"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ajax="http://www.apusic.com/jsf/ajax"
	xmlns:g="http://www.apusic.com/jsf/graph" renderKitId="AJAX">
	<w:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<style type="text/css">
			.x-grid3-row-over {
				background: yellow;
			}
		</style>
	</w:head>
	<w:page
		title="#{module.menu.moduleItemManageBean.messages.moduleItemManagePageTitle}">
		<w:form style="height:95%">
			<layout:panelGrid columns="2" cellspacing="5px" width="50%">
				<layout:cell style="padding-right: 3px;" align="right">
					<h:outputLabel value="模块名称：" style="font-size: 14px;"></h:outputLabel>
				</layout:cell>
				<layout:cell>
				<w:textField id="moduleName" width="140"></w:textField>
				</layout:cell>
			</layout:panelGrid>

			<w:editDataGrid paged="true" rows="15" id="moduleItemDataGrid" var="moduleItem"
				toolBarPosition="bottom" 
				selectionModel="#{constantBean.cell}" height="280">

				<w:outputColumn id="id" header="ID" value="#{moduleItem.id}" hidden="true" />
				<w:outputColumn
					header="#{module.menu.moduleItemManageBean.messages.moduleItemManageModuleItemName}"
					id="name" width="140">
					<w:textField id="editName" allowBlank="false" />
				</w:outputColumn>
				<w:outputColumn
					header="#{module.menu.moduleItemManageBean.messages.moduleItemManageModuleItemIcon}"
					id="icon" width="120">
					<w:combo id="editIcon" width="140" editable="false" maxHeight="150">
						<f:selectItems value="#{iconBean.icons}" />
					</w:combo>
				</w:outputColumn>

				<w:outputColumn
					header="#{module.menu.moduleItemManageBean.messages.moduleItemManageModuleItemUrl}"
					id="url" width="190">
					<w:textField id="editUrl" allowBlank="false" />
				</w:outputColumn>
			</w:editDataGrid>
			<w:pagingToolbar for="moduleItemDataGrid" target="moduleItemDataGrid">
				<w:button id="add" image="../../resources/images/new.gif" />
				<w:button id="del" image="../../resources/images/delete.gif" />
			</w:pagingToolbar>

			<div align="right" style="padding-top: 8px;">
				<layout:panelGrid columns="2">
					<w:button id="ok" image="../../resources/images/save.gif"
						width="50" label="保存" />
					<w:button id="cancel_main" image="../../resources/images/cancel.png"
						width="50" label="取消" />
				</layout:panelGrid>
			</div>
		</w:form>
	</w:page>
</f:view>